-- GENERATED SPELL FOR [Braxxus] --


function spell0_23353(pUnit, Event) --@Double Breath,n/a--
pUnit:FullCastSpellOnTarget(41437,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23353', 4500, 1)
end

function spell1_23353(pUnit, Event) --@Mangle,n/a--
pUnit:FullCastSpellOnTarget(41439,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23353', 20000, 1)
end

function spell2_23353(pUnit, Event) --@Panic,Self--
pUnit:FullCastSpellOnTarget(41436,pUnit)
pUnit:RegisterEvent('Sorts_23353', 6272, 1)
end

function Sorts_23353(pUnit, Event)
local choix_sorts_23353 = math.random(0, 2)
if choix_sorts_23353 == 0 then
pUnit:RegisterEvent('spell0_23353', 1, 1)
end
if choix_sorts_23353 == 1 then
pUnit:RegisterEvent('spell1_23353', 1, 1)
end
if choix_sorts_23353 == 2 then
pUnit:RegisterEvent('spell2_23353', 1, 1)
end
end

function mob23353_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23353', math.random(1500, 3000), 1)
end

function mob23353_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23353_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23353_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23353, 1, 'mob23353_Action')
RegisterUnitEvent(23353, 2, 'mob23353_Leave')
RegisterUnitEvent(23353, 3, 'mob23353_Kill')
RegisterUnitEvent(23353, 4, 'mob23353_Die')
